/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define Relay_7_Pin GPIO_PIN_2
#define Relay_7_GPIO_Port GPIOE
#define Relay_6_Pin GPIO_PIN_3
#define Relay_6_GPIO_Port GPIOE
#define Relay_5_Pin GPIO_PIN_4
#define Relay_5_GPIO_Port GPIOE
#define Relay_4_Pin GPIO_PIN_5
#define Relay_4_GPIO_Port GPIOE
#define Relay_3_Pin GPIO_PIN_6
#define Relay_3_GPIO_Port GPIOE
#define Limit_2_Pin GPIO_PIN_8
#define Limit_2_GPIO_Port GPIOI
#define Relay_2_Pin GPIO_PIN_11
#define Relay_2_GPIO_Port GPIOI
#define Relay_1_Pin GPIO_PIN_6
#define Relay_1_GPIO_Port GPIOF
#define LED_Run_Pin GPIO_PIN_2
#define LED_Run_GPIO_Port GPIOH
#define LED_Danger_Pin GPIO_PIN_3
#define LED_Danger_GPIO_Port GPIOH
#define Beep_Pin GPIO_PIN_4
#define Beep_GPIO_Port GPIOH
#define LED_Warning_Pin GPIO_PIN_5
#define LED_Warning_GPIO_Port GPIOH
#define Dir_2_DR1_Pin GPIO_PIN_8
#define Dir_2_DR1_GPIO_Port GPIOE
#define PWM2_TIM1_CH1_Pin GPIO_PIN_9
#define PWM2_TIM1_CH1_GPIO_Port GPIOE
#define Dir_1_DR2_Pin GPIO_PIN_10
#define Dir_1_DR2_GPIO_Port GPIOE
#define PWM1_TIM1_CH2_Pin GPIO_PIN_11
#define PWM1_TIM1_CH2_GPIO_Port GPIOE
#define Dir_4_DR3_Pin GPIO_PIN_12
#define Dir_4_DR3_GPIO_Port GPIOE
#define PWM4_TIM1_CH3_Pin GPIO_PIN_13
#define PWM4_TIM1_CH3_GPIO_Port GPIOE
#define Lim_2_ALM1_Pin GPIO_PIN_14
#define Lim_2_ALM1_GPIO_Port GPIOE
#define Lim_1_ALM2_Pin GPIO_PIN_15
#define Lim_1_ALM2_GPIO_Port GPIOE
#define En_3_MF4_Pin GPIO_PIN_10
#define En_3_MF4_GPIO_Port GPIOB
#define En_5_MF5_Pin GPIO_PIN_11
#define En_5_MF5_GPIO_Port GPIOB
#define En_4_MF3_Pin GPIO_PIN_8
#define En_4_MF3_GPIO_Port GPIOH
#define Limit_12_Pin GPIO_PIN_12
#define Limit_12_GPIO_Port GPIOH
#define En_1_MF2_Pin GPIO_PIN_12
#define En_1_MF2_GPIO_Port GPIOB
#define En_2_MF1_Pin GPIO_PIN_13
#define En_2_MF1_GPIO_Port GPIOB
#define Lim_4_ALM3_Pin GPIO_PIN_8
#define Lim_4_ALM3_GPIO_Port GPIOD
#define Lim_3_ALM4_Pin GPIO_PIN_9
#define Lim_3_ALM4_GPIO_Port GPIOD
#define Lim_5_ALM5_Pin GPIO_PIN_10
#define Lim_5_ALM5_GPIO_Port GPIOD
#define Servos2_TIM4_CH2_Pin GPIO_PIN_13
#define Servos2_TIM4_CH2_GPIO_Port GPIOD
#define Dir_3_DR4_Pin GPIO_PIN_6
#define Dir_3_DR4_GPIO_Port GPIOC
#define PWM3_TIM3_CH2_Pin GPIO_PIN_7
#define PWM3_TIM3_CH2_GPIO_Port GPIOC
#define PWM5_TIM3_CH3_Pin GPIO_PIN_8
#define PWM5_TIM3_CH3_GPIO_Port GPIOC
#define Dir_5_DR5_Pin GPIO_PIN_9
#define Dir_5_DR5_GPIO_Port GPIOC
#define USART1_ENTX_Pin GPIO_PIN_11
#define USART1_ENTX_GPIO_Port GPIOA
#define Limit_11_Pin GPIO_PIN_13
#define Limit_11_GPIO_Port GPIOH
#define Limit_8_Pin GPIO_PIN_0
#define Limit_8_GPIO_Port GPIOI
#define Limit_9_Pin GPIO_PIN_1
#define Limit_9_GPIO_Port GPIOI
#define Limit_10_Pin GPIO_PIN_2
#define Limit_10_GPIO_Port GPIOI
#define Limit_1_Pin GPIO_PIN_3
#define Limit_1_GPIO_Port GPIOI
#define RS485_1_TX_Pin GPIO_PIN_10
#define RS485_1_TX_GPIO_Port GPIOC
#define RS485_1_RX_Pin GPIO_PIN_11
#define RS485_1_RX_GPIO_Port GPIOC
#define RS485_1_EN_Pin GPIO_PIN_12
#define RS485_1_EN_GPIO_Port GPIOC
#define Limit_7_Pin GPIO_PIN_11
#define Limit_7_GPIO_Port GPIOG
#define Relay_8_Pin GPIO_PIN_3
#define Relay_8_GPIO_Port GPIOB
#define Relay_9_Pin GPIO_PIN_4
#define Relay_9_GPIO_Port GPIOB
#define Relay_10_Pin GPIO_PIN_5
#define Relay_10_GPIO_Port GPIOB
#define Relay_11_Pin GPIO_PIN_6
#define Relay_11_GPIO_Port GPIOB
#define Relay_12_Pin GPIO_PIN_7
#define Relay_12_GPIO_Port GPIOB
#define Limit_6_Pin GPIO_PIN_4
#define Limit_6_GPIO_Port GPIOI
#define Limit_5_Pin GPIO_PIN_5
#define Limit_5_GPIO_Port GPIOI
#define Limit_4_Pin GPIO_PIN_6
#define Limit_4_GPIO_Port GPIOI
#define Limit_3_Pin GPIO_PIN_7
#define Limit_3_GPIO_Port GPIOI

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
